package com.woniuxy.service.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class AliPayConfig {
    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000121641317";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC9ykEsw052ZuTBwh9wtHrGOj1FfHX9rUPPFAKY51RMCT8wLfNmhRFDchtV7d2esPx5IAm9Sr6G25Rvfo6YvN1UNk5ONl52i5JUoOqZnMWg0RO1VHLw9kFuBMfmYZjrnyp+jos+Mv5Occ0BEu7Ov9JD4bMyqocazw3/68jLMAc0KEjTrO73NT6oP7aZK1Q/D+cB2CwDwU9dtGUAJmx4Avn8f58wuwMJ9f7NmCsJs1YKpX3VlPVvjsvc6N/pUU0LQ/KF7LsFoOIqRpWYrRfO2nsmpYtPbbZJa+lLSuW/qesygzbOZhVUhWpa5bpthdswj3BCuhjZGnG56RbmwK4CD7RFAgMBAAECggEAcNECbwZl5LIDNz4ajFdsR9skwuJaDQJqtXSSmqugC1bPzebysbVV7r6siybLP2K7oZCu2WvN18I8+Q3E2/wgoMdrQsjE3DjZMh85dTigrZi622YosR3hBPIolcTcLuu9Sd+X29BaJO02zHWhqRqTdbB7YhnGF+SO0Nsqz8Vr8s8ddEoSMC84ZmmTZi78e9GllDWlA9w7Sj47Jq/EPgbxVjaHdGFmepxz8xwjTMpmEz7qW3KMcqFXQsn2EJsBMyTXYHEq+BScFcUc9fDZWLJ1ab56dc1YrYLO2HKefbjMkaSFMqgdadl+zvFaonaDE7Fb9L3KlFW8FPtE4p2pA52aAQKBgQDdpSlgcW6QEy1QABeqDUuGUGvs8UoRmWLQH3hc4encBAE1BteuwztQnyCTHdx/kx90n6RHJ9QAeX8DOwQiwL+NpgU6KB8VgnjN0dogBqY2fF4q4Juea0kmYUjrFfPOP9tTNROmTOaEKsMlUr68oJNCJfF51po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I3wFP81qkWxj8P3zjp7ObJw+7FwAe/n20hc5CfCaGm3hVCUXCdOZCenMn4IX5C7CoFhUlXDXnV++gs2wZqRqQD0hLkgvaROA";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWzqoZbirHurAMq6xsEXD783mwKJK94VCWgTBaMP4+Quoqd4p8wRX9vqc3rMOM24VBwxOXHLGWggkwxbWKs1pRLSwkhADETp/kfpQfaaVoYWleUVBjO3RiSnANAjjzZEC/Xa5oMdADAV9Jzg2+C/4MhQi5YMP0JY3mtJsgY1d+xeEDN0793vIba47TiwHlaIMHX0r7vphYp2nkIWUO7l+ra5PnxFKQSWaWu3CF7zfVO8U2f/Lz6A9azKr4BPq0hdMK1Fzqd9Z3EcVzvk9+y9rVarjOsWT2KfnYlxRoM7mss1oPywNH3pLJ90xqQzlvIqg6/ypTp4kt9+9imSItKPjwIDAQAB/a1DzxQCmOdUTAk/MC3zZoURQ3IbVe3dnrD8eSAJvUq+htuUb36OmLzdVDZOTjZedouSVKDqmZzFoNETtVRy8PZBbgTH5mGY658qfo6LPjL+TnHNARLuzr/SQ+GzMqqHGs8N/+vIyzAHNChI06zu9zU+qD+2mStUPw/nAdgsA8FPXbRlACZseAL5/H+fMLsDCfX+zZgrCbNWCqV91ZT1b47L3Ojf6VFNC0Pyhey7BaDiKkaVmK0Xztp7JqWLT222SWvpS0rlv6nrMoM2zmYVVIVqWuW6bYXbMI9wQroY2RpxuekW5sCuAg+0RQIDAQAB/THw78VA8pzjjoUCayHE7fVhuvAM+KafLqixLL/hVWvn2jLlj5nM/oOG7EAXS7E7GyPX1YKfQxH9w9TYfvS4dqC1NdSNfC2H59qdnlINnZ2j1brK6PS5N/IfrPHqrEp1Lj6dyQaz6sCi53fwAuGU3oO0IbZz780s+EDjtj0fW9HJtL5GmHLYTE9lA4gIhWf3Wr6px72oFynM0CP19n5KlzGzPVl5EUPgPdNGYCc2pfFcQ3wgQnJmqaIoj9sN5eciuYECQ76Uc99rnEgWxFy30Osh4tjBjl1r5cQgHQ5BrrBbxT2Ywsx2wIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://localhost:7001/payorder/asynchroPayEnd";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost:7001/payorder/synchroPayEnd";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
    public static String log_path = "C:\\";
    private String logPath;

    public String getAppId() {
        return app_id;
    }

    public void setAppId(String app_id) {
        this.app_id = app_id;
    }

    public String getPrivateKey() {
        return merchant_private_key;
    }

    public void setPrivateKey(String merchant_private_key) {
        this.merchant_private_key = merchant_private_key;
    }

    public String getPublicKey() {
        return alipay_public_key;
    }

    public void setPublicKey(String alipay_public_key) {
        this.alipay_public_key = alipay_public_key;
    }

    public String getNotifyUrl() {
        return notify_url ;
    }

    public void setNotifyUrl(String notify_url ) {
        this.notify_url  = notify_url ;
    }

    public String getReturnUrl() {
        return return_url;
    }

    public void setReturnUrl(String return_url) {
        this.return_url = return_url;
    }

    public String getSignType() {
        return sign_type;
    }

    public void setSignType(String sign_type) {
        this.sign_type = sign_type;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }
}
